import type {
	MessageHookReturnType,
	ModalHookReturnType,
	NotificationHookReturnType,
} from "@arco-design/web-react";
import React from "react";

export interface useAppProps {
	message: MessageHookReturnType;
	notification: NotificationHookReturnType;
	modal: ModalHookReturnType;
}

export const AppContext = React.createContext<useAppProps>({
	message: {},
	notification: {},
	modal: {},
});

export const useApp = () => React.useContext(AppContext);
